Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] Add doc for adding partitions #4374

Merged
merged 4 commits into from
Oct 29, 2024

Conversation

xuzifu666
Copy link
Member

Purpose

Linked issue: close #xxx

add doc for add partition.

Tests

API and Format

Documentation

@xuzifu666 xuzifu666 changed the title [doc] Add partitions doc added [doc] Add doc for adding partitions Oct 24, 2024
@wwj6591812
Copy link
Contributor

+1


The following SQL adds the partitions of the paimon table.

For flink sql, you can specify the partial columns of partition columns, and you can also specify multiple partition values at the same time.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note here, only with metastore configured

@@ -119,6 +119,14 @@ The following SQL drops the partitions of the paimon table. For spark sql, you n
ALTER TABLE my_table DROP PARTITION (`id` = 1, `name` = 'paimon');
```

## Adding Partitions

The following SQL adds the partitions of the paimon table. For spark sql, you need to specify all the partition columns.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note here, only with metastore configured

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @JingsongLi had change it as:"The following SQL adds the partitions of the paimon table. For spark sql, you need to specify all the partition columns, only with metastore configured metastore.partitioned-table=true"

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@JingsongLi JingsongLi merged commit 1eba087 into apache:master Oct 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants